From: Jonas Ã…dahl Date: Tue, 16 Aug 2022 10:47:55 +0000 (+0200) Subject: scripting: Terminate using meta_context_terminate() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~405^2^2~244 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a071d9e0092b33746c0bcb02639ee7e61d0b798a;p=gnome-shell.git scripting: Terminate using meta_context_terminate() With meta_exit() we bypass the tear down procedures, making the test case excercising much less code paths. Use meta_context_terminate() instead, as that exits the main loop and goes through proper shutdown. Part-of: --- diff --git a/js/ui/scripting.js b/js/ui/scripting.js index 76a74d5e8..cbd6ecd6b 100644 --- a/js/ui/scripting.js +++ b/js/ui/scripting.js @@ -293,7 +293,7 @@ async function _runPerfScript(scriptModule, outputFile) { Meta.exit(Meta.ExitCode.ERROR); } - Meta.exit(Meta.ExitCode.SUCCESS); + global.context.terminate(); } /**